import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../../routes/routes.dart';
import '../../../../shared/shared.dart';

class MeButton extends StatelessWidget {
  final String text;

  const MeButton({Key? key, required this.text}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      radius: 0,
      highlightColor: Colors.transparent,
      onTap: () => Get.toNamed(Routes.edit),
      child: Container(
          alignment: Alignment.center,
          margin: const EdgeInsets.all(20),
          width: 205,
          height: 42,
          decoration: BoxDecoration(
              color: ColorConstants.themeColor.withOpacity(0.44),
              borderRadius: const BorderRadius.all(Radius.circular(21))),
          child: Text(text,
              style: const TextStyle(
                  color: ColorConstants.themeColor, fontSize: 18))),
    );
  }
}
